package com.ruicar.afs.cloud.manage.outer.api.change.relation.feign;

import com.ruicar.afs.cloud.common.core.query.QueryCondition;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.manage.outer.api.change.relation.dto.RelationChangeDTO;
import com.ruicar.afs.cloud.manage.outer.api.insurance.dto.ManageInsuranceInfoDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description: 联系方式变更
 */
@FeignClient(name = "relationChangeApply", url = "${com.greatwall.services.manage.url}")
public interface RelationChangeFeign {
    /**
     * 查询联系方式变更列表数据
     */
    @ApiOperation("查询联系方式变更列表数据")
    @PostMapping(value = "contactChange/getManageContactChangeList")
    IResponse getManageContactChangeList(@RequestBody RelationChangeDTO dto, @RequestHeader Map<String, String> headers);

    /**
     * 联系方式变更保存
     */
    @ApiOperation("联系方式变更保存")
    @PostMapping(value = "contactChange/changeContactChange")
    IResponse changeContactChange(@RequestBody Map<String, Object> map, @RequestHeader Map<String, String> headers);

    /**
     * 删除草稿数据
     */
    @ApiOperation("删除草稿数据")
    @PostMapping(value = "contactChange/delete")
    IResponse delete(@RequestParam("id") Long id, @RequestHeader Map<String, String> headers);

    /**
     * 联系方式变更提交
     */
    @ApiOperation("联系方式变更提交")
    @PostMapping(value = "contactChange/changeContactSubmit")
    IResponse changeContactSubmit(@RequestBody RelationChangeDTO dto, @RequestHeader Map<String, String> headers);

}
